var express = require("express");
var router = express.Router();
var service = require("../server/order");

/* GET home page. */
router.post("/query", async (req, res, next) => {
    let result = await service.query(req, res);
    res.send(result);
});

router.post("/update", async (req, res, next) => {
    let result = await service.update(req, res);
    res.send(result);
});

router.post("/create", async (req, res, next) => {
    let result = await service.create(req, res);
    res.send(result);
});
module.exports = router;
